package com.example.managementjava.Leave;

public class LeaveNote {
    String name;
    String sid;
    String gender;
    String phone;
    String special;
    String home;
    String date;
    String reason;
    String endtime;
    String state;
    Boolean affirm;


    public LeaveNote(String name, String number, String gender, String phone, String special, String home, String date, String reason, String endtime) {
        this.name=name;
        this.sid=number;
        this.gender=gender;
        this.phone=phone;
        this.special=special;
        this.home=home;
        this.date=date;
        this.reason=reason;
        this.endtime=endtime;
        this.state = "待审核";
        affirm = false;
    }

    public LeaveNote(String name, String sid, String gender, String phone, String special, String home, String date, String reason, String endtime, String state, String affirm) {
        this.name=name;
        this.sid=sid;
        this.gender=gender;
        this.phone=phone;
        this.special=special;
        this.home=home;
        this.date=date;
        this.reason=reason;
        this.endtime=endtime;
        this.state = state;
        this.affirm = affirm.equals("1");
    }


    @Override
    public String toString() {
        return "姓名："+name+",学号："+sid+",性别："+gender+",联系电话："+phone+",年级专业："+
                special+",宿舍："+home+",请假时间："+date+",请假事由："+reason+",销假时间："+endtime
                +",状态："+state+",是否销假："+affirm;
    }
}
